package org.jeecg.trace.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 物料工件关联表
 * @Author: shaolong
 * @Date:   2022-10-26
 * @Version: V1.0
 */
@Data
@TableName("mes_material_set")
@ApiModel(value="物料工件关联对象", description="物料工件关联表")
public class MesMaterialSet implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@Excel(name = "主键ID", width = 15)
    @ApiModelProperty(value = "主键ID")
    private java.math.BigDecimal recId;
	/**历史记录ID*/
    @ApiModelProperty(value = "历史记录ID")
    private String histId;
	/**产线或产线组*/
	@Excel(name = "产线或产线组", width = 15)
    @ApiModelProperty(value = "产线或产线组")
    private String line;
	/**工件号*/
	@Excel(name = "工件号", width = 15)
    @ApiModelProperty(value = "工件号")
    private String unitsn;
	/**
     * 工位
     */
    @Excel(name = "工位", width = 15)
    @ApiModelProperty(value = "工位")
    private String stn;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
    /**
     * 物料版本
     */
    @Excel(name = "物料版本", width = 15)
    @ApiModelProperty(value = "物料版本")
    private String itemrev;
	/**物料批次号*/
	@Excel(name = "物料批次号", width = 15)
    @ApiModelProperty(value = "物料批次号")
    private String lot;
	/**物料批次数量*/
	@Excel(name = "物料批次数量", width = 15)
    @ApiModelProperty(value = "物料批次数量")
    private java.math.BigDecimal qty;
	/**状态(0: InBind 1: OutBind)*/
	@Excel(name = "状态(0: InBind 1: OutBind)", width = 15)
    @ApiModelProperty(value = "状态(0: InBind 1: OutBind)")
    private String status;
    /**
     * 保留
     */
    @Excel(name = "保留", width = 15)
    @ApiModelProperty(value = "保留")
    private String reserved;
    /**
     * 物料
     */
    @Excel(name = "物料", width = 15)
    @ApiModelProperty(value = "物料")
    private String itempartno;
    @Excel(name = "物料", width = 15)
    @ApiModelProperty(value = "原料描述")
    @TableField(exist = false)
    private String descLocal;
}
